﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;

public partial class tests : System.Web.UI.Page
{
    protected void Page_Load(object sender, EventArgs e)
    {
       

    }
    protected void AsyncFileUpload1_UploadedComplete(object sender, AjaxControlToolkit.AsyncFileUploadEventArgs e)
    {
        if (AsyncFileUpload1.HasFile)
        {

            string paths = Server.MapPath(Request.ApplicationPath) + "\\marcfiles\\" + AsyncFileUpload1.FileName;
            AsyncFileUpload1.SaveAs(paths);
        //    AsyncFileUpload1.ClearAllFilesFromPersistedStore();

          //  cols(paths);



        }
     //   AsyncFileUpload1.FileContent.Close();
       Response.Redirect("~/tests.aspx");

        //GridView1.DataSource = SqlDataSource1;
        //GridView1.DataBind();
    }
    protected void Button1_Click(object sender, EventArgs e)
    {

    }
}
